﻿using System.Web.Mvc;
using NerdDinnerMVC.Models;

namespace NerdDinnerMVC.Controllers
{
    public class RSVPController : Controller
    {
       

        [Authorize, HttpPost]
        public ActionResult Register(int id)
        {
            var proxy = new DinnerBusinessObject();
            proxy.RegisterForDinner(id, User.Identity.Name);
            return Content("Thanks - we’ll see you there!");
        }
    }
}